const mongoose = require('mongoose')
const { Schema } = mongoose

const detailSchema = new Schema({
  id: Number,
  image: String,
  title: String,
  price: Number,
  originPrice: Number,
  carouselList: Array,
  couponValue: String,
  descContentList: Array,
  photo: Array,
}, { _id: false })

const DetailModel = mongoose.model('Detail', detailSchema)

module.exports = DetailModel
